package com.yl.pattern.creatormodel.singleton.demo2;


/**
 * @Author 小羊
 * @Date 29/10/2024下午 5:40
 * @ClassName Client
 * @Description 测试
 */
public class Client {
    public static void main(String[] args) {
        //创建Singleton对象
        Singleton instance = Singleton.getInstance();
        Singleton instance2 = Singleton.getInstance();
        //判断获取到的两个对象是否是同一个
        System.out.println(instance==instance2);
    }
}
